//Declaracion de constantes
const ANNOTATION_PLAYER = 1;
const ANNOTATION_TROOP = 2;
const ANNOTATION_MOTORCYCLE = 3;
const ANNOTATION_TANK = 4;
const ANNOTATION_COMMAND_CENTER = 5;

const ANNOTATION_ENEMY_PLAYER = 6;
const ANNOTATION_ENEMY_TROOP = 7;
const ANNOTATION_ENEMY_MOTORCYCLE = 8;
const ANNOTATION_ENEMY_TANK = 9;
const ANNOTATION_ENEMY_COMMAND_CENTER = 10;


//Define como se consultan desde afuera las constantes
//En los archivos se tiene que hacer referencia al este archivo mediante require y se asigna a una variable
//var AnnotationType = require('ui/model/AnnotationType');
//Luego utilizando el objeto AnnotationType se pueden consultar los valores de las constantes
//Por ejemplo: AnnotationType.ANNOTATION_PLAYER devuelve el valor 1

//La viarble que hace refrencia al archivo puede tener cualquier nombre

exports.ANNOTATION_ENEMY_PLAYER = ANNOTATION_ENEMY_PLAYER;
exports.ANNOTATION_ENEMY_TROOP = ANNOTATION_ENEMY_TROOP;
exports.ANNOTATION_ENEMY_TANK = ANNOTATION_ENEMY_TANK;
exports.ANNOTATION_ENEMY_MOTORCYCLE = ANNOTATION_ENEMY_MOTORCYCLE;
exports.ANNOTATION_ENEMY_COMMAND_CENTER = ANNOTATION_ENEMY_COMMAND_CENTER;

exports.ANNOTATION_PLAYER = ANNOTATION_PLAYER;
exports.ANNOTATION_TROOP = ANNOTATION_TROOP;
exports.ANNOTATION_TANK = ANNOTATION_TANK;
exports.ANNOTATION_MOTORCYCLE = ANNOTATION_MOTORCYCLE;
exports.ANNOTATION_COMMAND_CENTER = ANNOTATION_COMMAND_CENTER;


exports.GetTypeDescriptionAnnotation = GetTypeDescriptionAnnotation = function(_idTypeAnnotation){
	switch(_idTypeAnnotation) {
    	case ANNOTATION_TANK:
    		return 'Tanque';
    	case ANNOTATION_MOTORCYCLE:
    		return 'Motocicleta';
        case ANNOTATION_TROOP:
			return 'Tropa';
       	case ANNOTATION_PLAYER:
        	return 'Jugador';
   		case ANNOTATION_COMMAND_CENTER:
        	return 'Centro de Comando';
        case ANNOTATION_ENEMY_TANK:
    		return 'Tanque Enemigo';
    	case ANNOTATION_ENEMY_MOTORCYCLE:
    		return 'Motocicleta Enemiga';
		case ANNOTATION_ENEMY_TROOP:
        	return 'Tropa Enemiga';
		case ANNOTATION_ENEMY_PLAYER:
        	return 'Jugador Enemigo';	
        case AnnotationType.ANNOTATION_ENEMY_COMMAND_CENTER:
    		return 'Centro de Comando Enemigo';    
	}
};
